                                        # 2.3  字符串
message = "One of Python's strenths is its diverse community."
print(message)
name = "ada lovelace"
    # 以标题格式输出
print(name.title())
    # 全部大写
print(name.upper())
    # 全部小写
print(name.lower())
first_name = "ada"
last_name = "lovelace"
    # 字符串拼接
full_name = first_name + " " + last_name
print(full_name)
print("Hello, " + full_name.title() + "!")
    # 使用制表符或换行符来添加空白
print("Languages:\t Python \t C++ \t Java \t C\n"
                "\t\t\t Lingo \t C# \t LaTeX \t MATLAB")
    # 删除空白
favorite_language = "Python "
favorite_language = favorite_language.rstrip()
print(favorite_language)